import Vue from 'vue'
import vuex from 'vuex'

Vue.use(vuex);

const state= {
    count: 0,
    userinfo: {},
    atvComponent: 'my-Follow',
};
const mutations = {

    changComponent(state, Component){
        state.atvComponent = Component.component;
        window.document.title = Component.title
    },

    saveUserInfo(state, userInfo){
        state.userinfo = userInfo;
    }
    
}

export default new vuex.Store({
    state,
    mutations
})